HAL CORDIC irq handler and callbacks functions migration ¶
This section provides information about the HAL CORDIC IRQ_Handler and Callbacks functions migration.
HAL CORDIC callbacks functions ¶
|
HAL1 |
HAL2 |
|---|---|
|
|
|
|
|
|
HAL CORDIC register callbacks. ¶
|
HAL1 |
HAL2 |
|---|---|
|
In HAL1, the function
|
In HAL2, separate functions are available to register each specific CORDIC callback, providing more granularity and control over the callback registration process. |
HAL_CORDIC_RegisterCallback(&cordic_handle,
HAL_CORDIC_CALCULATE_CPLT_CB_ID,
USER_CORDIC_CalculateCpltCallback)
HAL_CORDIC_RegisterCallback(&cordic_handle,
HAL_CORDIC_ERROR_CB_ID,
USER_CORDIC_ErrorCallback)
HAL_CORDIC_RegisterCallback(&cordic_handle,
HAL_CORDIC_MSPINIT_CB_ID,
CORDIC_MSPInitCallback)
HAL_CORDIC_RegisterCallback(&cordic_handle,
HAL_CORDIC_MSPDEINIT_CB_ID,
CORDIC_MSPDeinitCallback)
|
HAL_CORDIC_RegisterCalculateCpltCallback(&cordic_handle, USER_CORDIC_CalculateCpltCallback)
HAL_CORDIC_RegisterErrorCallback(&cordic_handle, USER_CORDIC_ErrorCallback)
|
Related concepts:
HAL CORDIC unregister callbacks. ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_CORDIC_UnRegisterCallback(&cordic_handle,
HAL_CORDIC_CALCULATE_CPLT_CB_ID)
HAL_CORDIC_UnRegisterCallback(&cordic_handle,
HAL_CORDIC_ERROR_CB_ID)
HAL_CORDIC_UnRegisterCallback(&cordic_handle,
HAL_CORDIC_MSPINIT_CB_ID)
HAL_CORDIC_UnRegisterCallback(&cordic_handle,
HAL_CORDIC_MSPDEINIT_CB_ID)
|
HAL_CORDIC_RegisterCalculateCpltCallback(&cordic_handle, CORDIC_CalculateCpltCallback)
HAL_CORDIC_RegisterErrorCallback(&cordic_handle, CORDIC_ErrorCallback)
|
Related concepts:
- Individual callback registration APIs replace global register and unregister functions
HAL CORDIC interrupts. ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_CORDIC_IRQHandler(CORDIC_HandleTypeDef *hcordic)
|
HAL_CORDIC_IRQHandler(hal_cordic_handle_t *hcordic)
|
Related concept: Introduce specialized IRQ handlers